package com.sxbbc.common.core.mapper.jz;

import com.sxbbc.common.core.entity.jz.BRedMoneyDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商家红包充值记录表 Mapper 接口
 * </p>
 *
 * @author leehao
 * @since 2019-06-05
 */
public interface BRedMoneyDetailMapper extends BaseMapper<BRedMoneyDetail> {

    /**
     * 查询商家充值记录表最新的一条记录
     * @param proCode 商品编码
     * @author leehao
     * @return 最新的数据
     */
    BRedMoneyDetail selectLastActivityInfo(@Param("proCode") String proCode);

    /**
     * 更新商家红包领取明细
     * @param bRedMoneyDetail /
     * @author leehao
     * @return int
     */
    int updateLockVersion(BRedMoneyDetail bRedMoneyDetail);
}
